package com.github.houkunlin.extension;


import com.intellij.database.SynchronizeHandler;
import com.intellij.database.model.DasDataSource;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.project.Project;
import org.jetbrains.annotations.NotNull;

public class DataSourceSynchronizeHandler extends SynchronizeHandler {

    private static final Logger LOG = Logger.getInstance(DataSourceSynchronizeHandler.class);
//    @Override
//    public void synchronizationStarted(@NotNull Project project, @NotNull Set<DbDataSource> set) {
//        DataSourceService dataSourceService = DataSourceService.getInstance();
//        dataSourceService.refreshTable(set);
//    }

    public void beforeSynchronize(@NotNull Project project, @NotNull DasDataSource dataSource) {
        //垃圾。。。2022 版本调用这个方法，老方法synchronizationStarted 无调用，失效
    }
}
